/**
 * 
 */
package TestCases;

import Tracer.RTVector;
import XMLScene.RTLight;
import junit.framework.TestCase;

/**
 * @author forrestzhao
 * 
 */
public class RTLightTest extends TestCase {
	private RTLight light = null;

	/**
	 * @param name
	 */
	public RTLightTest(String name) {
		super(name);
	}

	protected void setUp() throws Exception {
		super.setUp();
		light = new RTLight(new RTVector(1.0f, 10.0f, 0.0f));
	}

	protected void tearDown() throws Exception {
		super.tearDown();
	}

	/**
	 * Test method for getPositionVector Test it works well after performing
	 * getPositionVector
	 */
	public final void testGetPositionVector() {
		assertTrue(light.getPositionVector().isEqual(
				new RTVector(1.0f, 10.0f, 0.0f)));
	}
}
